﻿
<div style="background-color:#F8F8F8" ms-controller="JHGLVIEW">

    <script type="text/javascript">

        var tempindex = avalon.define({
            $id: "JHGLVIEW",
            CancelWF: function (dataid) {
                $.getJSON('/API/VIEWAPI.ashx?Action=JHBG_DEL', { P1: dataid }, function (resultData) {

                })
            },//重新更新图书状态
            InitWigetData: function (strId) {
                model.title = "计划变更";
                model.ShowColumns.pushArray(
                [{ ColName: "BGJE", ColText: "变更金额", IsSel: true },
                      { ColName: "BGLY", ColText: "变更理由", IsSel: true },
                  { ColName: "ShenQingRen", ColText: "变更发起人", IsSel: true },
                      { ColName: "CRDate", ColText: "发起时间", IsSel: true, format: "dateformat" },
               
                ]);

                if (strId) {
                    //编辑加载数据
                    $.getJSON('/API/VIEWAPI.ashx?Action=JHBG_GETMODEL', { P1: strId }, function (resultData) {
                        if (resultData.ErrorMsg == "") {
                            model.modelData = resultData.Result;
                            setTimeout(" ComFunJS.initForm()", 500)
                        }
                    })
                }
            }
        });
    </script>
</div>
